dask 2021.10.0

NotesParametersReturns
wrapped(*args, **kwargs)

This docstring was copied from numpy.sinc.

Some inconsistencies with the Dask version may exist.

The sinc function is $\sin(\pi x)/(\pi x)$ .

note

Note the normalization factor of pi used in the definition. This is the most commonly used definition in signal processing. Use sinc(x / np.pi) to obtain the unnormalized sinc function :None:math:`\sin(x)/(x)` that is more common in mathematics.

Notes

sinc(0) is the limit value 1.

The name sinc is short for "sine cardinal" or "sinus cardinalis".

The sinc function is used in various signal processing applications, including in anti-aliasing, in the construction of a Lanczos resampling filter, and in interpolation.

For bandlimited interpolation of discrete-time signals, the ideal interpolation kernel is proportional to the sinc function.

Parameters

x : ndarray (Not supported in Dask)

Array (possibly multi-dimensional) of values for which to to calculate sinc(x) .

Returns

out : ndarray

sinc(x) , which has the same shape as the input.

Return the normalized sinc function.

Examples

This example is valid syntax, but we were not able to check execution
>>> import matplotlib.pyplot as plt  # doctest: +SKIP
... x = np.linspace(-4, 4, 41) # doctest: +SKIP
... np.sinc(x) # doctest: +SKIP array([-3.89804309e-17, -4.92362781e-02, -8.40918587e-02, # may vary -8.90384387e-02, -5.84680802e-02, 3.89804309e-17, 6.68206631e-02, 1.16434881e-01, 1.26137788e-01, 8.50444803e-02, -3.89804309e-17, -1.03943254e-01, -1.89206682e-01, -2.16236208e-01, -1.55914881e-01, 3.89804309e-17, 2.33872321e-01, 5.04551152e-01, 7.56826729e-01, 9.35489284e-01, 1.00000000e+00, 9.35489284e-01, 7.56826729e-01, 5.04551152e-01, 2.33872321e-01, 3.89804309e-17, -1.55914881e-01, -2.16236208e-01, -1.89206682e-01, -1.03943254e-01, -3.89804309e-17, 8.50444803e-02, 1.26137788e-01, 1.16434881e-01, 6.68206631e-02, 3.89804309e-17, -5.84680802e-02, -8.90384387e-02, -8.40918587e-02, -4.92362781e-02, -3.89804309e-17])
This example is valid syntax, but we were not able to check execution
>>> plt.plot(x, np.sinc(x))  # doctest: +SKIP
[<matplotlib.lines.Line2D object at 0x...>]
This example is valid syntax, but we were not able to check execution
>>> plt.title("Sinc Function")  # doctest: +SKIP
Text(0.5, 1.0, 'Sinc Function')
This example is valid syntax, but we were not able to check execution
>>> plt.ylabel("Amplitude")  # doctest: +SKIP
Text(0, 0.5, 'Amplitude')
This example is valid syntax, but we were not able to check execution
>>> plt.xlabel("X")  # doctest: +SKIP
Text(0.5, 0, 'X')
This example is valid syntax, but we were not able to check execution
>>> plt.show()  # doctest: +SKIP
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /dask/array/ufunc.py#26
type: <class 'function'>
Commit: